From 37573109a05a07ac50827759ea63793209baa73a Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 7 Sep 2026 19:17:45 +0200 Subject: Add routine detail page with editable description and health history --- .../[projectId]/routine/[routineId]/+page.svelte | 440 +++++++++++++++++++++ 1 file changed, 440 insertions(+) create mode 100644 src/routes/projects/[projectId]/routine/[routineId]/+page.svelte (limited to 'src/routes/projects/[projectId]/routine/[routineId]/+page.svelte') diff --git a/src/routes/projects/[projectId]/routine/[routineId]/+page.svelte b/src/routes/projects/[projectId]/routine/[routineId]/+page.svelte new file mode 100644 index 0000000..ab0774c --- /dev/null +++ b/src/routes/projects/[projectId]/routine/[routineId]/+page.svelte @@ -0,0 +1,440 @@ + + +
+ ← {data.project.name} + + + +
{ + return async ({ result, update }) => { + await update({ reset: false }); + }; + }} + > + {#if form?.error} +

{form.error}

+ {/if} + + + + {#if frequency !== '' && frequencyDays === null} +

Intervalle invalide — ex : 1d, 2w, 3m, 1y

+ {/if} + +

✓ Enregistré

+
+ +

Santé

+
+ {#if geometry} + + {#each geometry.grid as line (line.label)} + + {/each} + + {#each geometry.markers as m (m.x)} + + {/each} + + + {:else} +

Pas encore assez d'historique pour tracer la courbe.

+ {/if} +
+ +

Historique

+
{ + return async ({ update }) => { + note = ''; + await update({ reset: false }); + }; + }} + > + + +
+ + + + {#if data.completions.length === 0} +

Aucune réalisation pour l'instant.

+ {/if} +
+ + -- cgit v1.3